package com.vrv.app.cyberspace.modules.sys.controller;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.vrv.app.cyberspace.common.utils.JSONResult;
import com.vrv.app.cyberspace.modules.sys.entity.IndustryTable;
import com.vrv.app.cyberspace.modules.sys.service.IIndustryTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.vrv.app.cyberspace.common.utils.JSONResult.renderSuccess;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sm
 * @since 2017-12-15
 */
@RestController
@RequestMapping("/sys/industry")
public class IndustryTableController extends BaseController {
    @Autowired
    private IIndustryTableService industryTableService;

    @GetMapping()
    public JSONResult getListIndustry() {
        return renderSuccess(industryTableService.selectList(new EntityWrapper<IndustryTable>().orderBy("id",true)));
    }
}

